//
//  WeCloudManager.h
//  WeCloudSDK
//
//  Created by Navinfo on 2018/4/4.
//  Copyright © 2018年 navinfo. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SDKDefine.h"

//{
//    messageData =             {
//        resultCode = 0;
//        resultMessage = "\U5237\U65b0\U8f66\U51b5\U6210\U529f";
//        transactionId = 180404133709;
//        vin = LEGEFG02365748547;
//    };
//    messageId = 785c2135be2a4a6c8cfadbb13979c4b4;
//    messageType = 202;
//}
@interface NIMessageObject : NSObject

@property(nonatomic,strong)NSString *messageId;
@property(nonatomic,assign)NSInteger messageType;

@end

@interface NIRemoteMessageObject : NIMessageObject

@property(nonatomic,assign)NSInteger resultCode;
@property(nonatomic,strong)NSString *resultMessage;
@property(nonatomic,strong)NSString *transactionId;
@property(nonatomic,strong)NSString *vin;

@end


@interface WeCloudManager : NSObject

@property(nonatomic,readonly)NSString *transactionId;
/**
 手机的唯一标识
 */
@property(nonatomic,readonly)NSString *mobileID;
/**
 推送注册tokenid
 */
@property(nonatomic)NSString *deviceId;

@property(nonatomic)NIRemoteMessageObject *remoteMessage;


@property(nonatomic)NSString *token;


- (void)setDeviceTokenWithData:(NSData *)deviceIdData;
- (void)didApnsWork:(NSDictionary *)userInfo;
+(instancetype)shareInstance;

//- (BOOL)isCommandRunning;
//- (NSArray *)getRunningCommandArray;
//- (BOOL)isCommandRunning:(NSString *)vin commandType:(NICommandType)type;
//- (void)addRunningCommand:(NSString *)vin commandType:(NICommandType)type;
//- (BOOL)removeRunningCommand:(NSString *)vin commandType:(NICommandType)type;

@end
